﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Abhar.web.src;

namespace Abhar.web.MasterPages
{
    public partial class Main : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.uxMenuList.DataSource = SiteMap.RootNode.ChildNodes;
                this.uxMenuList.DataBind();
            }
        }

        protected void uxLanguageCommand_Click(object sender, EventArgs e)
        {
            if (this.uxLanguageCommand.Text == "Arabic")
                this.SwitchLanguage(Language.Arabic);
            else
                this.SwitchLanguage(Language.English);
        }
    }
}